

<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/pageRc/common/common.jsp"%>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<meta name="format-detection" content="telephone=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="mobile-web-app-capable" content="yes">
	<meta name="msapplication-tap-highlight" content="no">
	<script type="text/javascript" src="<%=commonPath %>/pageRc/js/jquery-1.9.1.min.js"></script> 
 　	<link rel="stylesheet" href="<%=commonPath %>/pageRc/layui/css/layui.css" media="all">
 　　　<script type="text/javascript" src="<%=commonPath %>/pageRc/common/utils.js"></script>
	<script type="text/javascript" src="<%=commonPath %>/pageRc/common/msgTool.js"></script>
	<script type="text/javascript" src="<%=commonPath %>/pageRc/layui/layui.js"></script>　
	<script type="text/javascript"
	src="<%=commonPath %>/pageRc/My97DatePicker/WdatePicker.js"></script>
	<title>新增目标信息</title> 
		<style>
.Wdate {
    border: #efefef 1px solid;
    height: 35px;
    width: 190px;
    background: #ffffff url(datePicker.gif) no-repeat right;
}
</style>
	<script type="text/javascript">
	var path = "<%=commonPath%>";
	var msg =new msgTool(); 
	$(document).ready(function(){
		$("#datePicker1").empty().html('<input type="text" id="months" name="months" class="Wdate" onClick="WdatePicker({months:\'%y-%M\',dateFmt:\'yyyyMM\'})"/>');
});
 
	</script>
</head>

 <body style="layui-main">
	 <div class="header">
	  <div class="main">
	    <div class="nav">
	    </div> 
	  </div>
	</div>
             <form  id="createMsgForm" name="createMsgForm"  class="layui-form"  style="padding:1.5rem"  >
             
               <div class="layui-form-item">
      <label class="layui-form-label">所属项目组</label>
	              <div class="layui-input-block"> 
	                  <select name="proTeamNo" id="proTeamNo" style="width: 210;">
							<c:if test="${userBean.position_type=='70'}">
									<option value="${userBean.proTeamNo}">${userBean.proTeamName}</option>
							</c:if>
							<c:if test="${userBean.position_type!='70'}">
							<option value="">项目组名称</option>
							<c:forEach items="${teanList}" var="tean">
								<option value="${tean.proTeamNo}">${tean.proTeamName}</option>
							</c:forEach>
							</c:if>
						</select> 
 	              </div>
  </div>
			 <div class="layui-form-item">
		      <label class="layui-form-label">月份 </label>
		    
					<div id="datePicker1" class="layui-input-inline">
			                <input type="text" id="months" name="months" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
		                   </div>
		</div>
	<div class="layui-form-item">
			<label class="layui-form-label">录入目标</label>
			<div class="layui-input-inline">
				<input type="text" id="goal" name="goal" placeholder="请输入录入目标"
					required lay-verify="required" autocomplete="off" class="layui-input">
			</div>
		</div>
  

              <div class="layui-form-item">
	              <div class="layui-input-block">
	              	 <button class="layui-btn" lay-filter="submitData" lay-submit>提交</button>
    	              </div>
              </div>  
          </form> 
<script> 
layui.use(
		[ 'form', 'layer', 'laytpl', 'laypage','laydate' ],
		 function(){
			var form = layui.form(),
			layer = layui.layer;
			 var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
			form.on('submit(submitData)',function(data){
				var field = data.field;
				//var now_money=${now_money};
				
				var dataObj = {
		  						"proTeamNo" : $("#proTeamNo").val(),
		  						"months" : $("#months").val(),
		  						"goal" : $("#goal").val()
		  						
		  					
		  					};

					  msg.sendMsg("/page/need/doaddgoal.do", dataObj, function (data) {
						  alert("提交成功！");
			                });
			            });
					  
				
				
			});


 /*  function custom_close(){
	  window.opener=null;
	  window.open('','_self');
	  window.close();
  } */

</script>
</body>
</html>
 
 